package com.xudow.app.model;

import java.io.Serializable;
import java.util.Date;

/**
 * 消息在本地的存储
 *
 * @author lukecheng
 */
public class LocalMessage implements Serializable {

    public static int MSG_TYPE_COMMON = 0; //非系统消息
    public static int MSG_TYPE_SYSTEM = 1; //系统消息
    public static int MSG_TYPE_OA = 2; //OA消息

    public static final String TABLE_NAME = "messages";

    private long id;

    private long userId;

    private long messageId;

    private String title;

    private String content;

    private int channel;

    private Date createTime;

    private int status;

    private int isSystemMessage;

    private String agencyName;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getMessageId() {
        return messageId;
    }

    public void setMessageId(long messageId) {
        this.messageId = messageId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getChannel() {
        return channel;
    }

    public void setChannel(int channel) {
        this.channel = channel;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getIsSystemMessage() {
        return isSystemMessage;
    }

    public void setIsSystemMessage(int isSystemMessage) {
        this.isSystemMessage = isSystemMessage;
    }

    public String getAgencyName() {
        return agencyName;
    }

    public void setAgencyName(String agencyName) {
        this.agencyName = agencyName;
    }
}
